package com.sikao.app.bean;

import java.util.List;

/**
 * Created by Sun on 2016/8/9.
 * 	[36]商品分类属性
 */
public class CategoryAttrForInviteBean {
    /**
     * status : 1
     * msg : 成功进行操作
     * res : [{"id":"1","name":"包装方式","attr_type":"1","attr_values":[{"id":0,"value":"散装","changePrice":"0"}],"default_value":[],"is_filter":"0","status":"0"},{"id":"2","name":"含水量","attr_type":"3","attr_values":[{"id":0,"value":"5%","changePrice":"0"},{"id":1,"value":"7%","changePrice":"0"},{"id":2,"value":"10%","changePrice":"0"},{"id":3,"value":"15%","changePrice":"0"},{"id":4,"value":"20%","changePrice":"0"}],"default_value":[{"id":0,"value":"5%","changePrice":"11"},{"id":1,"value":"7%","changePrice":"2"},{"id":2,"value":"10%","changePrice":"3"}],"is_filter":"0","status":"0"},{"id":"3","name":"煤燃烧值","attr_type":"3","attr_values":[{"id":0,"value":"10000大卡","changePrice":"0"},{"id":1,"value":"7000大卡","changePrice":"0"},{"id":2,"value":"5000大卡","changePrice":"0"},{"id":3,"value":"3000大卡","changePrice":"0"},{"id":4,"value":"1000大卡","changePrice":"0"}],"default_value":{"0":{"id":2,"value":"5000大卡","changePrice":"0"},"2":{"id":0,"value":"5000大卡","changePrice":"4"}},"is_filter":"0","status":"0"},{"id":"4","name":"色彩","attr_type":"3","attr_values":[{"id":0,"value":"红色","changePrice":"0"},{"id":1,"value":"绿色","changePrice":"0"},{"id":2,"value":"蓝色","changePrice":"0"}],"default_value":[{"id":0,"value":"红色","changePrice":"5"}],"is_filter":"1","status":"0"},{"id":"5","name":"自动化","attr_type":"3","attr_values":[{"id":0,"value":"手动","changePrice":"0"},{"id":1,"value":"半自动","changePrice":"0"},{"id":2,"value":"全自动","changePrice":"0"}],"default_value":[{"id":0,"value":"手动","changePrice":"6"}],"is_filter":"1","status":"0"},{"id":"6","name":"功率","attr_type":"3","attr_values":[{"id":0,"value":"1kw","changePrice":"0"},{"id":1,"value":"2kw","changePrice":"0"},{"id":2,"value":"5kw","changePrice":"0"},{"id":3,"value":"10kw","changePrice":"0"}],"default_value":[{"id":1,"value":"2kw","changePrice":"0"},{"id":0,"value":"2kw","changePrice":"7"},{"id":1,"value":"5kw","changePrice":"8"}],"is_filter":"0","status":"0"},{"id":"7","name":"多选测试","attr_type":"4","attr_values":[{"id":0,"value":"多选测试1","changePrice":"0"},{"id":1,"value":"多选测试2","changePrice":"0"},{"id":2,"value":"多选测试3","changePrice":"0"},{"id":3,"value":"多选测试4","changePrice":"0"},{"id":4,"value":"多选测试5","changePrice":"0"},{"id":5,"value":"多选测试6","changePrice":"0"},{"id":6,"value":"多选测试7","changePrice":"0"}],"default_value":{"0":{"id":0,"value":"多选测试1","changePrice":"0"},"1":{"id":2,"value":"多选测试3","changePrice":"0"},"2":{"id":1,"value":"多选测试3","changePrice":"0"},"4":{"id":2,"value":"多选测试5","changePrice":"0"}},"is_filter":"0","status":"0"},{"id":"8","name":"下拉测试","attr_type":"5","attr_values":[{"id":0,"value":"下拉测试1","changePrice":"0"},{"id":1,"value":"下拉测试2","changePrice":"0"},{"id":2,"value":"下拉测试3","changePrice":"0"}],"default_value":[{"id":0,"value":"下拉测试1","changePrice":"0"}],"is_filter":"0","status":"0"},{"id":"9","name":"文本测试","attr_type":"1","attr_values":[{"id":0,"value":"eeee","changePrice":"0"}],"default_value":[],"is_filter":"0","status":"0"},{"id":"10","name":"多选测试2","attr_type":"4","attr_values":[{"id":0,"value":"多选测试2_1","changePrice":"0"},{"id":1,"value":"多选测试2_2","changePrice":"0"},{"id":2,"value":"多选测试2_3","changePrice":"0"},{"id":3,"value":"多选测试2_4","changePrice":"0"}],"default_value":[],"is_filter":"0","status":"0"},{"id":"11","name":"下拉测试2","attr_type":"5","attr_values":[{"id":0,"value":"下拉测试2_1","changePrice":"0"},{"id":1,"value":"下拉测试2_2","changePrice":"0"},{"id":2,"value":"下拉测试2_3","changePrice":"0"}],"default_value":{"0":{"id":2,"value":"下拉测试2_3","changePrice":"0"},"2":{"id":0,"value":"下拉测试2_3","changePrice":"0"}},"is_filter":"0","status":"0"}]
     */

    private int status;
    private String msg;
    /**
     * id : 1
     * name : 包装方式
     * attr_type : 1
     * attr_values : [{"id":0,"value":"散装","changePrice":"0"}]
     * default_value : []
     * is_filter : 0
     * status : 0
     */

    private List<ResBean> res;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<ResBean> getRes() {
        return res;
    }

    public void setRes(List<ResBean> res) {
        this.res = res;
    }

    public static class ResBean {
        private String id;
        private String name;
        private String attr_type;
        private String is_filter;
        private String status;
        private String content;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        /**
         * id : 0
         * value : 散装
         * changePrice : 0
         */

        private List<AttrValuesBean> attr_values;
        private List<DefaultValueBean> default_value;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAttr_type() {
            return attr_type;
        }

        public void setAttr_type(String attr_type) {
            this.attr_type = attr_type;
        }

        public String getIs_filter() {
            return is_filter;
        }

        public void setIs_filter(String is_filter) {
            this.is_filter = is_filter;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public List<AttrValuesBean> getAttr_values() {
            return attr_values;
        }

        public void setAttr_values(List<AttrValuesBean> attr_values) {
            this.attr_values = attr_values;
        }

        public List<DefaultValueBean> getDefault_value() {
            return default_value;
        }

        public void setDefault_value(List<DefaultValueBean> default_value) {
            this.default_value = default_value;
        }

        public static class AttrValuesBean {
            private int id;
            private String value;
            private String changePrice;
            private boolean isChecked=false;//默认没有选择

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public String getChangePrice() {
                return changePrice;
            }

            public void setChangePrice(String changePrice) {
                this.changePrice = changePrice;
            }
        }
        public static class DefaultValueBean {
            private int id;
            private String value;
            private String changePrice="0";

            public String getChangePrice() {
                return changePrice;
            }

            public void setChangePrice(String changePrice) {
                this.changePrice = changePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }
    }
}
